﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LogList.aspx.cs" Inherits="fsw.Web.Manager.LogList" ValidateRequest="false" %>
<%@ Import Namespace="fsw.Common" %>
<%@ Register Src="~/HeaderJs.ascx" TagPrefix="uc1" TagName="HeaderJs" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
     <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="renderer" content="webkit" />
    <title>管理日志</title>
    <uc1:HeaderJs runat="server" ID="HeaderJs" />
</head>
<body>
   <div class="position">当前位置：<a href="List.aspx">管理员管理</a> > 管理日志</div>
    <div class="border">
        <form id="form1" runat="server">
            <div class="am-btn-group">
                <a href="Add.aspx" class="am-btn am-btn-secondary am-radius am-text-sm"><span class="am-icon-plus am-margin-right-sm"></span>添加管理员</a>
            </div>
            <div class="am-form am-form-inline am-fr">
                <div class="am-form-group am-form-icon">
                    <i class="am-icon-search"></i>
                    <asp:TextBox ID="txtKeywords" runat="server" CssClass="am-form-field am-input-sm" placeholder="请输入关键字" />
                    <asp:LinkButton ID="lbtnSearch" runat="server" CssClass="am-btn am-btn-warning am-radius am-text-sm" OnClick="lbtnSearch_Click">搜索</asp:LinkButton>
                </div>
            </div>
            <div class="am-cf"></div>
            <asp:Repeater ID="rptList" runat="server">
                <HeaderTemplate>
                    <table class="am-table am-table-hover am-margin-top">
                        <thead>
                            <tr>
                                <th width="80">ID</th>
                                <th width="100">管理员</th>
                                <th width="100">真实姓名</th>
                                <th width="120">ip</th>
                                <th width="150">日志内容</th>
                                <th width="200">UA</th>                               
                                <th width="150">操作时间</th>
                            </tr>
                        </thead>
                        <tbody>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                       <td><%#Eval("Id") %></td>
                        <td><%#Eval("UserName") %></td>
                        <td><%#Eval("RealName") %></td>
                        <td><%#Eval("UserIP") %></td>
                        <td><%#Eval("Remark") %></td>
                        <td><%#Eval("UserAgent") %></td>
                        <td><%#Utils.GetTime( Eval("AddDate").ToString()).ToString() %></td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    <%#rptList.Items.Count == 0 ? "<tr><td align=\"center\" colspan=\"5\">暂无记录</td></tr>" : ""%> </tbody>
                 </table>
                </FooterTemplate>
            </asp:Repeater>

            <div class="border-top am-padding">
                <div class="am-u-sm-10 pagelist">
                    <ul>
                        <div id="PageContent" runat="server" class="am-fl"></div>
                        <div class="am-fr">
                            <asp:TextBox ID="txtPageNum" runat="server" CssClass="pagenum" onkeydown="return checkNumber(event);"
                                OnTextChanged="txtPageNum_TextChanged" AutoPostBack="True"></asp:TextBox>条/页
                        </div>
                    </ul>
                </div>
                <div class="clear"></div>
            </div>

        </form>
    </div>
</body>
</html>
